package com.itqf.yun.controller;

import com.itqf.yun.dto.SelectDto;
import com.itqf.yun.service.SelectService;
import com.itqf.yun.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin("*")
@RequestMapping("select")
public class SelectController {
    @Autowired

    private SelectService selectService;


    /**
     *模糊查询
     * @param
     * @return
     */
    @GetMapping("find")
    public Object find(@RequestBody SelectDto selectDto){
        R r = selectService.find(selectDto.getPname());
        return r;
    }
}
